XmlNodeList nodeList= (infodoc.SelectNodes("configuration/Settings/directory")); foreach (XmlNode elem in nodeList) { string strValue = elem.Attributes[1].Value; }